package com.lance;

import feign.Logger;
import org.elasticsearch.client.transport.TransportClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author lancecong
 * @version 1.0
 * @ClassName
 * @DESCRIPTION TODO
 * @create2019/1/6
 **/
@SpringBootApplication
@EnableFeignClients
//@EnableCircuitBreaker
public class FeignClientApplication implements CommandLineRunner {

    @Autowired
    private static TransportClient transportClient;


    public static void main(String[] args) {
        SpringApplication.run(FeignClientApplication.class, args);
    }

    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
}
